@include('header')
<!-- start banner_y -->
<div class="banner_y center">
    <div class="nav">				
        <ul>
            @foreach($data as $value)
            <li>
                <a href="">{{$value->name}}</a> 
                <?php
                $id = $value->id;
                $info = \DB::table("goods")->where("cid", $id)->get();
                ?>  
                <div class="pop">
                    <div class="left fl">
                        @foreach($info as $v)
                        <div>
                            <div class="xuangou_left fl">
                                <a href="">
                                    <div class="img fl"><img width="40" height="40" src="{{$v->img}}" alt=""></div>
                                    <span class="fl">{{$v->title}}</span>
                                    <div class="clear"></div>
                                </a>
                            </div>
                            <div class="xuangou_right fr"><a href="/home/xiangqing/{{$v->id}}" target="_blank">选购</a></div>
                            <div class="clear"></div>
                        </div>  
                        @endforeach
                    </div> 
                    <div class="clear"></div> 
                </div>

            </li> 
            @endforeach
        </ul>
    </div>

</div>	

<div class="sub_banner center">
    <div class="sidebar fl">
<!--        <div class="fl"><a href=""><img src="/style/home/images/hjh_01.gif"></a></div>
        <div class="fl"><a href=""><img src="/style/home/images/hjh_02.gif"></a></div>
        <div class="fl"><a href=""><img src="/style/home/images/hjh_03.gif"></a></div>
        <div class="fl"><a href=""><img src="/style/home/images/hjh_04.gif"></a></div>
        <div class="fl"><a href=""><img src="/style/home/images/hjh_05.gif"></a></div>
        <div class="fl"><a href=""><img src="/style/home/images/hjh_06.gif"></a></div>-->
        <div class="clear"></div>
    </div>
    <div class="datu fl"><a href=""><img src="/style/home/images/hongmi4x.png" alt=""></a></div>
    <div class="datu fl"><a href=""><img src="/style/home/images/xiaomi5.jpg" alt=""></a></div>
    <div class="datu fr"><a href=""><img src="/style/home/images/pinghengche.jpg" alt=""></a></div>
    <div class="clear"></div>


</div>
<!-- end banner -->

<!-- start danpin -->
<div class="danpin center">

    <div class="biaoti center">小米热销</div>
    <div class="main center">
        @foreach($host as $v)
        <div class="mingxing fl">
            <div class="sub_mingxing"><a href="/home/xiangqing/{{$v->id}}"><img src="{{$v->img}}" alt=""></a></div>
            <div class="pinpai"><a href="">{{$v->title}}</a></div>
            <div class="youhui">{{$v->keywords}}</div>
            <div class="jiage">{{$v->m_price}}.00元</div>
        </div>
        @endforeach
        <div class="clear"></div>
    </div>
</div>
<div class="peijian w">
    <div class="biaoti center">配件</div>
    <div class="main center">
        <div class="content"> 
            
            @foreach($p as $v)
            <div class="remen fl">
                <div class="xinpin"><span>新品</span></div>
                <div class="tu"><a href=""><img src="{{$v->img}}"></a></div>
                <div class="miaoshu"><a href="/home/xiangqing/{{$v->id}}">{{$v->title}}</a></div>
                <div class="jiage">{{$v->m_price}}.00元</div>
                <div class="pingjia">372人评价</div>
                <div class="piao">
                    <a href="">
                        <span>发货速度很快！很配小米6！</span>
                        <span>来至于mi狼牙的评价</span>
                    </a>
                </div>
            </div>
            @endforeach
            
            <div class="clear"></div>
        </div>				
    </div>
</div>
@include('foot')